#!/bin/bash
while true
do
    num=`ps |grep triton |grep -v grep|grep -v {runservice.sh} |wc -l`
    if [ $num -lt 1 ];then
        nohup /media/upan/triton/triton /media/upan/triton/config.conf > /media/upan/triton/output.log 2>&1 & 
    fi
    sleep 10
done